package com.mb.demo.controller;

import com.mb.demo.entity.Test;
import com.mb.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mabin
 * @since 2023-05-25
 */
@Controller
@RequestMapping("/test")
public class TestController {



    @RequestMapping("/hello")
    public String hello(ModelMap map) {
        map.put("message", "this data is from backing server , for freemarker");
        return "helloHtml1";
    }

}
